package approve.model;


public class ConfigStaticLang {
	private Integer iDConfigStaticLang;
	private String vn;
	private String kr;
	private String en;
	private String nameByLang;
	
	public ConfigStaticLang(Integer iDConfigStaticLang, String vn, String kr,
			String en) {
		this.vn = vn;
		this.kr = kr;
		this.en = en;
	}

	public ConfigStaticLang() {
	}

	public Integer getiDConfigStaticLang() {
		return iDConfigStaticLang;
	}

	public void setiDConfigStaticLang(Integer iDConfigStaticLang) {
		this.iDConfigStaticLang = iDConfigStaticLang;
	}

	public String getVn() {
		return vn;
	}

	public void setVn(String vn) {
		this.vn = vn;
	}

	public String getKr() {
		return kr;
	}

	public void setKr(String kr) {
		this.kr = kr;
	}

	public String getEn() {
		return en;
	}

	public void setEn(String en) {
		this.en = en;
	}

	public String getNameByLang(String lang) {
		nameByLang = "no lang";
		if(lang.equalsIgnoreCase("VN")) nameByLang = this.vn;
		if(lang.equalsIgnoreCase("KR")) nameByLang = this.kr;
		if(lang.equalsIgnoreCase("EN")) nameByLang = this.en;
	return nameByLang;
	}
	
	public void setNameByLang(String nameByLang) {
		this.nameByLang = nameByLang;
	}
}